import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 获取rfid列表数据
  getRfidData: {
    url: '/api/v1/base/erfid',
    method: 'get'
  },
  //新增
  creatRfid: {
    url: '/api/v1/base/erfid',
    method: 'post'
  },
  //查看
  onDetailRfid: {
    url: '/api/v1/base/erfid',
    method: 'get',
    type: 'restful'
  },
  //修改
  updateRfid: {
    url: '/api/v1/base/erfid',
    method: 'put',
    type: 'restful'
  },
  //获取绑定记录
  getBindRecord: {
    url: '/api/v1/base/erfid_bind',
    method: 'get'
  }
}

export default buildService(settings)
